/*
 * ProgressDialog.h
 *
 *  Created on: 18.12.2009
 *      Author: apoi
 */

#ifndef PROGRESSDIALOG_H_
#define PROGRESSDIALOG_H_

#include <QDialog>

#include "ui_ProgressDialog.h"

class ProgressDialog : public QDialog
{
    Q_OBJECT

public:
    ProgressDialog (QWidget *parent, bool cancelable = false);
    ~ProgressDialog ();

public:
    void ShowTaskProgress (const QString &status);

signals:
    /** Task canceled/exited */
    void canceled ();

private:
    void keyPressEvent(QKeyEvent * event);
    Ui::ProgressDialog ui;
};

#endif /* PROGRESSDIALOG_H_ */
